<script type="text/javascript">
	function setSent(id,i){
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/updatePostGood/"+'/'+id+'/'+i;
		doPost(url,'','');	
		if (i){
			document.getElementById('list_'+id).style.color = '#aaa';
			document.getElementById('list_s1_'+id).style.display = 'none';
			document.getElementById('list_s0_'+id).style.display = '';
		}else {
			document.getElementById('list_'+id).style.color = '#000';
			document.getElementById('list_s1_'+id).style.display = '';
			document.getElementById('list_s0_'+id).style.display = 'none';
		}
			
	}
</script>

<div class="mod_left_content" style="padding:20px;">

<table border="0" align="center" cellpadding="0" cellspacing="1" class="list">
<?php foreach ($reports as $da){ 
	$tid = $da['seqid'];
	$g_sent = $da['is_good_post'];
	$da['post_url'] = (strstr($da['post_url'],'http://'))?$da['post_url']:('http://'.$da['post_url']);
	//echo strstr($da['post_url'],'http://');
	?>
<tr id="list_<?=$tid?>" <?=$g_sent?'style="color:#BBB" ':''?>>
<td>
ID:<?=$tid?><br />
    	<div id="list_s1_<?=$tid?>" <?=$g_sent?'style="display:none"':''?>>
    	<strong><span style="background-color:blue;color:white">&nbsp;&nbsp;&nbsp;待审核&nbsp;&nbsp;&nbsp;</span></strong><br /><br />
    	<a href="javascript:setSent(<?=$tid?>,1)" >设为通过</a>
    	</div>

    	<div id="list_s0_<?=$tid?>" <?=$g_sent?'':'style="display:none"'?>>
    	<strong><span style="color:red">通过</span></strong><br /><br />
    	<a href="javascript:setSent(<?=$tid?>,0)" >设为待审</a>
    	</div>

</td>


<td>
<div style="padding:12px 0px;border-bottom:1px dotted #bbb" >
<?=$da['post_time']?> <strong><?=$da['g_name']?></strong> 免费试用了 <strong><?=$da['p_name']?></strong>。  <a href="<?=$da['post_url']?>" target="_blank">去看看TA的体验报告&gt;&gt;：  <?=$da['post_url']?></a>
</div>
</td></tr>
<?php } ?>
</table>

<div style="text-align:center;">
<?php if ($curpage>1) {  ?>			
<a href="<?=SystemProperties::$app_host."/user/listAllpost/".($curpage-1)?>">上一页</a>
<?php } ?>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php if (!$nonext) {  ?>					
<a href="<?=SystemProperties::$app_host."/user/listAllpost/".($curpage+1)?>">下一页</a>
<?php } ?>
</div>					
</div>